
<?php
        require_once 'config.php';
        $cont = $_GET['key'];
        if(!empty($_GET['key'])){
        $sql="select * from login where user like'%$cont%'";
        $result= mysqli_query($conn,$sql);
        if(mysqli_num_rows($result) > 0){
        while ($row = mysqli_fetch_array($result)){
        $id=$row[0];
        ?>
        <tr>
            <td class="ys content"><?php echo $row[0];?></td>
            <td class="ys content"><?php echo $row[1];?></td>
            <td class="content"><img width="80" height="80" src="<?php echo $row[2];?>"/></td>
            <td class="content">
                <a href="del.php?id=<?=$id?>">删除</a>
                <a href="edit.php?id=<?=$id?>">修改</a>
                <a href="add.php">添加</a>
            </td>
        </tr>
    <?php
        }
    }
}
    ?>
